package com.zbkj.crmeb.user.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.crmeb.front.response.UserSpreadPeopleItemResponse;
import com.zbkj.crmeb.store.response.RetailShopUserOrderResponse;
import com.zbkj.crmeb.user.model.User;
import com.zbkj.crmeb.user.request.UserMemberLevelRequest;
import com.zbkj.crmeb.user.response.UserResponse;
import com.zbkj.crmeb.user.vo.UserOperateFundsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-04-10
 */

public interface UserDao extends BaseMapper<User> {
    Boolean updateFounds(UserOperateFundsVo userOperateFundsVo);

    List<UserSpreadPeopleItemResponse> getSpreadPeopleList(Map<String, Object> map);

    List<User> selectUserInfoList(@Param("ew") QueryWrapper<UserResponse> queryWrapper);

    void calcMoney(@Param("condition") User entity);

    List<RetailShopUserOrderResponse> getPromotionalInformation(Integer uid);

    List<User> selectUserLevelList(UserMemberLevelRequest request);

}
